home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 2001 Haziran
/
CHIP Haziran2001.iso
/
prog
/
share
/
04
/
setup.exe
/
MM7.Cab
/
F443_mscommerce.info5.asp.3A7A5E73_1F50_4F88_AB38_531BFA72E747
< prev
next >
Wrap
Text File
|
2000-08-17
|
5KB
|
235 lines
<!-- #INCLUDE FILE="../include/utils.runtime5.asp" -->
<%
RejectUnauthorizedCallers
' *****************************************************************************
'
' info/mscommerce.info5.asp
'
' Dynamic Link design time support for Microsoft Commerce Server.
'
'
' COPYRIGHT (c) 1999-2000 Adobe Systems Incorporated. All rights reserved.
' -----------------------------------------------------------------------------
' Return an XML document containing information about the objects available
' for binding from Microsoft Commerce Server. Valid requests are:
'
' mscommerce.asp return the available objects
' mscommerce.asp?object=<name> return the structure of a given object
' -----------------------------------------------------------------------------
' Objects in the Microsoft Commerce Server are implemented as dictionaries.
' While this makes it easy to extend them, it makes it impossible to examine
' their structure (as keys don't exist until they've been set).
'
' This leaves us with no option but to hard-code the keys that might be
' found in those dictionaries.
%>
<% if Request("object") = "OrderForm" then %>
<FIELD>
<NAME>ship_to_name</NAME>
<FRIENDLYNAME>Ship To Name</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>ship_to_street</NAME>
<FRIENDLYNAME>Ship To Street</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>ship_to_city</NAME>
<FRIENDLYNAME>Ship To City</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>ship_to_state</NAME>
<FRIENDLYNAME>Ship To State</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>ship_to_zip</NAME>
<FRIENDLYNAME>Ship To Zip</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>ship_to_country</NAME>
<FRIENDLYNAME>Ship To Country</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>ship_to_phone</NAME>
<FRIENDLYNAME>Ship To Phone</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>items</NAME>
<FRIENDLYNAME>Items</FRIENDLYNAME>
<STRUCTURE>
<FIELD>
<NAME>SKU</NAME>
</FIELD>
<FIELD>
<NAME>_product_name</NAME>
<FRIENDLYNAME>Name</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>_product_description</NAME>
<FRIENDLYNAME>Description</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>_product_image_file</NAME>
<FRIENDLYNAME>Image</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>Quantity</NAME>
</FIELD>
<FIELD>
<NAME>_iadjust_currentprice</NAME>
<FRIENDLYNAME>Unit Price</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>_oadjust_adjustedprice</NAME>
<FRIENDLYNAME>Quantity Price</FRIENDLYNAME>
</FIELD>
<% if 0 then %>
<FIELD></FIELD>
<FIELD>
<NAME>_product_dept_id</NAME>
</FIELD>
<FIELD>
<NAME>_product_image_height</NAME>
</FIELD>
<FIELD>
<NAME>_product_image_width</NAME>
</FIELD>
<FIELD>
<NAME>_product_manufacturer</NAME>
</FIELD>
<FIELD>
<NAME>_product_list_price</NAME>
</FIELD>
<FIELD>
<NAME>_product_sku</NAME>
</FIELD>
<FIELD></FIELD>
<FIELD>
<NAME>list_price</NAME>
</FIELD>
<FIELD>
<NAME>placed_price</NAME>
</FIELD>
<FIELD>
<NAME>_n_unadjusted</NAME>
</FIELD>
<FIELD>
<NAME>_iadjust_regularprice</NAME>
</FIELD>
<FIELD>
<NAME>_oadjust_discount</NAME>
</FIELD>
<FIELD>
<NAME>_tax_total</NAME>
</FIELD>
<FIELD>
<NAME>_tax_included</NAME>
</FIELD>
<% end if %>
</STRUCTURE>
</FIELD>
<FIELD>
<NAME>_oadjust_subtotal</NAME>
<FRIENDLYNAME>Order Subtotal</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>shipping_method</NAME>
<FRIENDLYNAME>Shipping Method</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>_shipping_total</NAME>
<FRIENDLYNAME>Shipping Charge</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>_handling_total</NAME>
<FRIENDLYNAME>Handling Charge</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>_tax_total</NAME>
<FRIENDLYNAME>Tax</FRIENDLYNAME>
</FIELD>
<FIELD>
<NAME>_total_total</NAME>
<FRIENDLYNAME>Order Total</FRIENDLYNAME>
</FIELD>
<% if 0 then %>
<FIELD></FIELD>
<FIELD>
<NAME>shopper_ID</NAME>
</FIELD>
<FIELD>
<NAME>order_id</NAME>
</FIELD>
<FIELD>
<NAME>date_changed</NAME>
</FIELD>
<FIELD></FIELD>
<FIELD>
<NAME>bill_to_name</NAME>
</FIELD>
<FIELD>
<NAME>bill_to_street</NAME>
</FIELD>
<FIELD>
<NAME>bill_to_city</NAME>
</FIELD>
<FIELD>
<NAME>bill_to_state</NAME>
</FIELD>
<FIELD>
<NAME>bill_to_zip</NAME>
</FIELD>
<FIELD>
<NAME>bill_to_country</NAME>
</FIELD>
<FIELD>
<NAME>bill_to_phone</NAME>
</FIELD>
<FIELD>
<NAME>cc_name</NAME>
</FIELD>
<FIELD>
<NAME>cc_type</NAME>
</FIELD>
<FIELD>
<NAME>_cc_number</NAME>
</FIELD>
<FIELD>
<NAME>_cc_expmonth</NAME>
</FIELD>
<FIELD>
<NAME>_cc_expyear</NAME>
</FIELD>
<FIELD></FIELD>
<FIELD>
<NAME>_tax_included</NAME>
</FIELD>
<FIELD></FIELD>
<FIELD>
<NAME>_Basket_Errors</NAME>
<STRUCTURE>
<FIELD>
<NAME>error string</NAME>
</FIELD>
</STRUCTURE>
</FIELD>
<FIELD>
<NAME>_Purchase_Errors</NAME>
<STRUCTURE>
<FIELD>
<NAME>error string</NAME>
</FIELD>
</STRUCTURE>
</FIELD>
<% end if %>
<% else %>
<OBJECT><NAME>OrderForm</NAME></OBJECT>
<% end if %>